﻿@using Microsoft.Extensions.Options;
@inject IOptionsSnapshot<OptionsConfigurationSample.Class> _classOptions
@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>
<ul class="nav navbar-nav">
    <li>班级Id：@_classOptions.Value.ClassId</li>
    <li>班级名称：@_classOptions.Value.ClassName</li>
</ul>
